Repository navigation
refactor(mosaic): Clean up shared screens between sign-up + sign-in - #10823
austincalvelage wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 992a5bf The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
…sign-in and sign-up views
|
…cks/auth The shared screens take their copy as a messages prop, like the verification blocks, so sign-up reads only its own messages. Sign-up gains the keys it used to borrow from sign-in, with the same English. The code step copy helpers that only sign-in uses move back to sign-in.utils.ts, and sign-up gets its own.
… verification blocks Sign-in renders VerificationPasskey, which takes the identity line as a slot like VerificationCode does. The sign-in, sign-up and reverification views build the Resend link through one verificationResend helper. The choice step copy moves to sign-in.utils.ts, and sign-in and sign-up declare the style atoms their own steps use.
…ature The divider, captcha spotlight and name row atoms style markup that only the sign-in and sign-up steps draw, so each feature declares its own and auth-flow.styles.ts is removed.


Description
Sign-in and sign-up show a lot of the same screens. This PR puts those screens in one shared place,
blocks/auth, and tidies up what was duplicated around them. Nothing changes for users: the screens look and read the same.What moved
blocks/auth: the email link screens, the wallet and enterprise pickers, the alternative phone screen, the loading, protect-check and blocked notices, the identity line and the captcha.blocks/verificationscreens work.Sign-up has its own text now
sign-up.messages.ts, with the same English, so a customer can change sign-up's wording without changing sign-in's.signUp.submit, becausesignUp.continuewas already taken by the "continue" step's title.Duplicates removed
VerificationPasskey, so sign-in uses that one now. It gained a slot for the email line with the edit button.verificationResendhelper.CodeStepis gone. It only passed things through toVerificationCode, so both flows render that directly.Where the leftovers went
sign-in.view.tsxintosign-in.utils.ts, and sign-up has its own small set. Their tests moved with them.features/auth-flowis down to two small files both flows need: the form values type and the phone number formatter.Follows #10822. This is the last PR of the sign-in and sign-up view stack.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude Code